use serde::{Deserialize, Serialize};

//文章详细详细信息
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct Article {
    pub id: Option<u32>,
    pub title: String,
    pub content: String,
    pub created_at: Option<String>,
}

//文章预览信息
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct ArticlePreview {
    pub id: u32,
    pub title: String,
    pub created_at: String,
}
